package com.itheima.health;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.xml.crypto.Data;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author ：spt
 * @date ：Created in 2022/06/29
 * @description ：
 * @version: 1.0
 */
@Slf4j
@SpringBootApplication
@EnableScheduling
@MapperScan("com.itheima.health.dao")
@ServletComponentScan
@EnableTransactionManagement
public class HealthApplication {

    public static void main(String[] args) {
        SpringApplication.run(HealthApplication.class, args);
        //启动时间
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        log.info("——————— 项目已启动,时间：" + simpleDateFormat.format(date)+" ———————");


    }

}